<form id="app-form" class="layui-form layuimini-form">

    <div id="content_i">
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <div class="layui-input-inline">
                    <span>字段</span>
                </div>
                <div class="layui-input-inline">
                    <span>excel表头标题</span>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <button type="button" lay-active="add_item" class="layui-btn layui-btn-normal layui-btn-sm">添加</button>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="insurance.config/index" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>


<template id="item_tpl">
    <div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <div class="layui-input-inline">
                    <select name="fields[]" lay-verify="required" lay-search>
                        {volist name="p_titles" id="vo"}
                        <option value="{$key}">{$vo}</option>
                        {/volist}
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" id="" name="titles[]" class="layui-input" lay-reqtext="请输入excel表头标题" placeholder="请输入excel表头标题" value="">
                </div>
                <button type="button" class="layui-btn layui-btn-danger layui-btn-sm " lay-active="delete_item" style="height: 38px;">删除</button>
            </div>
        </div>
    </div>
</template>